package cn.iocoder.yudao.module.erp.enums;

import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

@RequiredArgsConstructor
@Getter
/**
 * 采购入库单状态枚举
 */
public enum ErpPurchaseOutStatus implements ArrayValuable<Integer> {

    WAIT(10, "待出库"),
    OUT(20, "已出库");

    public static final Integer[] ARRAYS = Arrays.stream(values()).map(ErpPurchaseOutStatus::getStatus).toArray(Integer[]::new);

    /**
     * 状态
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public Integer[] array() {
        return ARRAYS;
    }

}
